using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

[RequireComponent(typeof(BoxCollider))]
public class VChat_InteractBox : MonoBehaviour
{
    private BoxCollider collider => GetComponent<BoxCollider>();

    //这里需要指定交互入口 btn , 玩家对话(a键)
    //也许是个委托柄
    public UnityAction action;

    public void BindAction(UnityEngine.UI.Button.ButtonClickedEvent buttonClickedEvent)
    {
        buttonClickedEvent.AddListener(action);
    }
}
